# folder.py
from user import User

class Path(object):
    '''user selected folder that contains photos'''
    def __init__(self, path):
        self.path = path
    def set_viewers(self, ids):
        # removing any that's not in ids
        for i in self.viewers:
            if not i.id in ids:
                self.viewers.remove(i)
        # adding all that's in ids
        for i in ids:
            user = User.query().get(i) 
            if not user in self.viewers:
                self.viewers.append(user)
        
        
        